![]() |
PATH![]() |
The JMSession interface contains structures and methods related to instantiating a Java session. It is analogous to the java.lang.System or java.lang.Runtime classes.
package com.apple.mrj.JManager;
import java.io.*;
/* JMSession represents the encapsulation of the MRJ runtime. */
public interface JMSession {
/* @return the "C" version of the JMSessionRef pointer */
public int getSessionRef();
/* @return the client specific data associated with this session */
public int getClientData() throws JManagerException;
/* Sets the client specific data */
/* @param data the new data to be set */
public void setClientData(int data) throws JManagerException;
/* Adds the specified .zip file or .class folder to */
/* the class path. */
/* @param path the path to the entity to add */
/* @exception throws FileNotFoundException if the entity */
/* isn't found */
public void addToClassPath(File path)
throws FileNotFoundException, JManagerException;
/* Turn a Java File object into a URL string */
/* @param filePath the path to the file - it may not exist */
/* @return a URL representing a local file */
public String fileToURL(File filePath) throws JManagerException;
/* Turn a URL string to a File object. (The object may not exist) */
/* @param urlString the name of the url */
/* @return a File object */
public File urlToFile(String urlString) throws JManagerException;
/* @return the current proxy information for the given proxy. */
public JMProxyInfo getProxyProps(int proxyKind)
throws JManagerException;
/* Set the specified proxy configuration */
public void setProxyProps(int proxyKind, JMProxyInfo info)
throws JManagerException;
}
Previous | Back Up One Level | Next |